//
//  JYTBaseViewController.h
//  JYT_IOS
//
//  Created by wolf －yuan on 16/11/13.
//  Copyright © 2016年 com.yuan. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "JYTBaseHeadView.h"

@class  JYTBaseViewController;


@protocol ProtocolViewControllerContainer <NSObject>
//
- (void) pushViewControllerToContainer:(JYTBaseViewController *)bvc;
//
- (void) popViewControllerFromContainer;

- (void) gotoNext;
@optional
- (void) PopToRootViewController;
- (void) PopToExactViewController:(JYTBaseViewController *)bvc;
@end

@protocol ProtocolComplish <NSObject>
- (void) goBaackRefreshView;
@end


@interface JYTBaseViewController : UIViewController

@property (nonatomic, strong) JYTBaseHeadView *navgationBar;
@property (nonatomic, strong) id <ProtocolViewControllerContainer> containerDelegate;
@property (nonatomic, strong) id <ProtocolComplish> goBackDelegate;

- (void) setNavgationBarWithDic:(NSDictionary *)dic;

- (void) goBack;
- (void) pushViewController:(JYTBaseViewController *)bvc;
- (void) goToRootViewController;
- (void) baseGoToNextViewController;
- (void) goToViewControllerIndexOfContainer:(NSInteger) index;
- (void)gotoViewController:(NSString *)viewControllerName;
@end
